// 存储sessionStorage
export const setStore = (name, content) => {
    if (!name) return;
    if (typeof content !== 'string') {
        content = JSON.stringify(content);
    }
    sessionStorage.setItem(name, content);
};

// 获取sessionStorage
export const getStore = name => {
    if (!name) return;
    return sessionStorage.getItem(name);
};